<div class="page-order">
	<div class="order-title clearfix">
		<div class="left">订单号：{{orderInfo.order_id}}</div>
		<div class="right {{order.status}}">{{orderInfo.status}}</div>
	</div>
	<div class="order-address">
		<img class="bg" src="catalog/view/theme/bhz/m/images/bg-address.png">
		<div class="address-wrap">
			<div class="user-info">
				<span class="user-span"><i class="icon-user"></i>{{orderInfo.fullname}}</span>
				<span class="mobile-span"><i class="icon-mobile"></i>{{orderInfo.shipping_telephone}}</span>
			</div>
			<div class="address">{{orderInfo.shipping_country}}{{orderInfo.shipping_zone}}{{orderInfo.shipping_city}}{{orderInfo.shipping_address}}</div>
		</div>
	</div>
	<div class="order-products">
		<ul class="products-list">
			<li class="products-item clearfix" ng-repeat="product in orderInfo.products">
				<table class="products-item-table">
					<tr>
						<td class="image"><img ng-src="{{product.image.image}}"></td>
						<td class="name"><div class="auto-cut-word-two-line"></div>{{product.name}}</td>
						<td class="price">{{product.price}}<br>x{{product.quantity}}</td>
					</tr>
				</table>
				<a class="option-btn option-review" href="javascript:void(0);" ng-if="product.can_comment" ng-click="gotoReview(orderInfo.order_id,product.order_product_id)">去评价</a>
				<a style="margin-right: 10px;border-color: #A92123;background-color: #A92123;color: #fff;" class="option-btn option-review ng-scope" href="javascript:void(0);" ng-if="product.can_comment" ng-click="jump('/product/'+product.product_id,true)">再买一次</a>
			</li>
		</ul>
	</div>
	<div class="totals">
		<div class="total-item" ng-repeat="total in orderInfo.totals">
			{{total.title}}:<span class="price">{{total.value}}</span>
		</div>
	</div>
	<div class="shipping-wrap">
		<div class="payment-method clearfix">
			<div class="title">支付方式</div>
			<div class="content">{{orderInfo.payment_method}}</div>
		</div>
		<div class="shipping-info">
			<div class="title">配送信息</div>
			<div class="content">订单时间:{{orderInfo.date_added}} 从无锡物流中心发货</div>
		</div>
	</div>
	<div class="section invoice clearfix">
    <div class="title">
      是否开具发票
    </div>
    <div class="value bhz-checkbox" ng-class="{'on':orderInfo.bill_status != 0}" ng-click="printBill();"></div>
  </div>
	<div class="options">
		<a class="option-btn option-pay" href="javascript:void(0);" ng-if="orderInfo.status == '待付款'" ng-click="gotoPay(orderInfo.order_id)">去支付</a>
	</div>
</div>

<script type="text/ng-template" id="confirmPrintDialog.html">
  <div class="dialog confirm-dialog" ng-click="$event.stopPropagation();">
    <p class="title ngdialog-text-center">确认要对当前订单开具发票吗？</p>
    <div class="ngdialog-buttons">
      <button type="button" class="ngdialog-button ngdialog-button-secondary" ng-click="closeThisDialog(0);$event.stopPropagation()">取消</button>
      <button type="button" class="ngdialog-button ngdialog-button-primary" ng-click="confirm(1);$event.stopPropagation()">确认</button>
    </div>
  </div>
</script>